import request from "@/utils/request";

// 公告列表 
export const getUserLevelList = ({ page }) => {
    return request({
        url: `/user_level/${page}`,
        method: "get",
    });
};

// 新增 
export const addUserLevel = (data) => {
    return request({
        url: `/user_level`,
        method: "post",
        data
    });
};
// 修改
export const editUserLevel = (id, data) => {
    return request({
        url: `/user_level/${id}`,
        method: "post",
        data
    });
};
// 删除
export const delUserLevel = (id) => {
    return request({
        url: `/user_level/${id}/delete`,
        method: "post",
    });
};
// 修改状态
export const changStatus = (id, data) => {
    return request({
        url: `/user_level/${id}/update_status`,
        method: "POST",
        data,
    });
};